package externalflame.systemdesign.comment.service;

import externalflame.systemdesign.comment.dto.CommentDto;
import externalflame.systemdesign.comment.entity.Comment;
import externalflame.systemdesign.comment.utils.ActionEnum;
import externalflame.systemdesign.comment.utils.Page;


public interface CommentService {
    Comment addComment(String userId, CommentDto commentDto);

    Boolean deleteComment(String commentId);

    Page<Comment> getCommentByContextId(String contextId, int page, int pageSize);

    String vote(String userId, String commentId, ActionEnum actionEnum);

    Page<Comment> getRepliesByCommentId(String commentId, int page, int pageSize);
}
